/**
 * Copyright (C), 2020, Y2 T205
 * FileName: MyWebConfig
 * Author: Lenovo
 * Date: 2020-05-25 16:54
 * Description:
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */


package com.atguigu.gulimall.gulimallauth.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author Lenovo
 * @create 2020-05-25
 * @since 1.0.0
 */
@Configuration
public class GulimallWebConfig implements WebMvcConfigurer {

    /*视图映射*/

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
